package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.util.List;

@Data
@NoArgsConstructor
@TableName("t_buyorder")
public class BuyOrderBean {
    @TableId(value = "pk_buyOrderId",type = IdType.AUTO)
    private Integer id;
    /**
     * 供应商编号
     */
    @TableField("fk_vendorId")
    private Integer vendorId;

    @TableField(exist = false)
    private VendorBean vendor;
    /**
     * 采购员编号
     */
    @TableField("fk_userId")
    private Integer userId;

    @TableField(exist = false)
    private UserBean user;
    @TableField("bo_createDate")
    private LocalDate createDate=LocalDate.now();

    @TableField(exist = false)
    private List<BuyOrderInfoBean> buyOrderInfoList;
}
